package org.hxyjs.vo;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.HashSet;
import java.util.Set;

public class GrabVo {
    String rno;
    Set<String> dates = new HashSet<>();

    public GrabVo() {
    }

    public GrabVo(String json) throws JsonProcessingException {
        GrabVo param = new ObjectMapper().readValue(json, GrabVo.class);
        this.rno = param.getRno();
        this.dates = param.getDates();
    }

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public Set<String> getDates() {
        return dates;
    }

    public void setDates(Set<String> dates) {
        this.dates = dates;
    }
}
